package com.xiaoyuanxing.demo.service;

import com.xiaoyuanxing.demo.entity.Account;
import com.xiaoyuanxing.demo.entity.AccountInfo;

/*
 **@author LuoShengYing
 **@date 2021/5/22
 */
public interface AccountService {

    // 通过wx_openID查询对应的Account数据
    Account selectByOpenID(String openID);

    // 通过accountID查询对应的AccountInfo数据
    AccountInfo selectAccountInfoByAccountID(long accountID);

    // 注册
    int register(String openID,String avatarUrl, String nickname, String sex, String studentID, String trueName, int schoolID, String collegeName);
}
